package gui;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSeparator;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class PantallaServer extends javax.swing.JFrame {
	private JPanel jPanel1;
	private JComboBox comboJugadores;
	private JLabel labelTitulo;
	private JButton BTok;
	private JLabel labelCategorias;
	private JSeparator jSeparator1;
	private JLabel labelCant;
	private JCheckBox checkCosas;
	private JCheckBox checkBebidas;
	private JCheckBox checkMarcas;
	private JCheckBox checkBandas;
	private JCheckBox checkComidas;
	private JCheckBox checkColores;
	private JCheckBox checkPaises;
	private JCheckBox checkNombres;
	private MainGui main = null;

		
	public PantallaServer(MainGui gui) {
		super();
		main = gui;
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			this.setResizable(false);
			this.setLocation(new java.awt.Point(200, 200));
			this.setMinimumSize(new java.awt.Dimension(300, 300));
			this.setPreferredSize(new java.awt.Dimension(396, 307));
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1);
				jPanel1.setLayout(null);
				jPanel1.setBounds(12, 12, 366, 255);
				
				{
					labelTitulo = new JLabel();
					jPanel1.add(labelTitulo);
					labelTitulo.setText("Configuracion del Server");
					labelTitulo.setBounds(101, 0, 202, 15);
				}
				{
					checkNombres = new JCheckBox();
					jPanel1.add(checkNombres);
					checkNombres.setText("Nombres");
					checkNombres.setBounds(12, 157, 84, 19);
				}
				{
					checkPaises = new JCheckBox();
					jPanel1.add(checkPaises);
					checkPaises.setText("Paises");
					checkPaises.setBounds(101, 157, 69, 19);
				}
				{
					checkColores = new JCheckBox();
					jPanel1.add(checkColores);
					checkColores.setText("Colores");
					checkColores.setBounds(175, 157, 78, 19);
				}
				{
					checkComidas = new JCheckBox();
					jPanel1.add(checkComidas);
					checkComidas.setText("Comidas");
					checkComidas.setBounds(258, 157, 87, 19);
				}
				{
					checkBandas = new JCheckBox();
					jPanel1.add(checkBandas);
					checkBandas.setText("Bandas");
					checkBandas.setBounds(12, 185, 78, 19);
				}
				{
					checkMarcas = new JCheckBox();
					jPanel1.add(checkMarcas);
					checkMarcas.setText("Marcas");
					checkMarcas.setBounds(101, 185, 69, 19);
				}
				{
					checkBebidas = new JCheckBox();
					jPanel1.add(checkBebidas);
					checkBebidas.setText("Bebidas");
					checkBebidas.setBounds(175, 185, 78, 19);
				}
				{
					checkCosas = new JCheckBox();
					jPanel1.add(checkCosas);
					checkCosas.setText("Cosas");
					checkCosas.setBounds(258, 185, 71, 19);
				}
				{
					ComboBoxModel comboJugadoresModel = 
						new DefaultComboBoxModel(
								new Integer[] { 2,3,4,5,6 });
					comboJugadores = new JComboBox();
					jPanel1.add(comboJugadores);
					comboJugadores.setModel(comboJugadoresModel);
					comboJugadores.setBounds(145, 69, 64, 23);
				}
				{
					labelCant = new JLabel();
					jPanel1.add(labelCant);
					labelCant.setText("Cantidad Jugadores");
					labelCant.setBounds(12, 73, 133, 15);
				}
				{
					jSeparator1 = new JSeparator();
					jPanel1.add(jSeparator1);
					jSeparator1.setBounds(12, 107, 342, 3);
				}
				{
					labelCategorias = new JLabel();
					jPanel1.add(labelCategorias);
					labelCategorias.setText("Categorias");
					labelCategorias.setBounds(12, 122, 133, 15);
				}
				{
					BTok = new JButton();
					jPanel1.add(BTok);
					BTok.setText("OK");
					BTok.setBounds(292, 233, 63, 22);
					BTok.addMouseListener(new MouseAdapter() {
						public void mouseClicked(MouseEvent e) {
							System.out.println("Clickeo en OK..");
							
						}
					});
				}
				
			}
			pack();
			this.setSize(396, 307);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
